package com.itheima.app.controller.omsController;

import com.itheima.app.manager.omsManager.OmsCompanyAddressManager;
import com.itheima.commons.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收货地址
 *
 * @author DogeGuo
 */
@CrossOrigin    //跨域
@RestController
public class OmsCompanyAddressController {
    @Autowired
    OmsCompanyAddressManager omsCompanyAddressManager;

    /**
     * 获取所有收货地址
     *
     * @return
     */
    @GetMapping("/companyAddress/list")
    public R findAll() {
        return omsCompanyAddressManager.findAll();
    }
}
